<template>
  <div>
    <el-input v-model="prop.data" />
  </div>
</template>

<script setup>
import {watch} from 'vue'

const prop = defineProps({
  data: String
})
watch(prop.data, () => {
  console.log(prop.data)
})
</script>

<style scoped>

</style>